package com.zwl.chengguangservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
//@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})

@MapperScan("com.zwl.chengguangservice.dao")
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableTransactionManagement // 如果mybatis中service实现类中加入事务注解，需要此处添加该注解
public class SpringcloudApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringcloudApplication.class, args);
    }

}
